package main

import (
	_ "assist-server/routers"

	"github.com/astaxie/beego"
)

func main() {
	if beego.BConfig.RunMode == "dev" {
		beego.BConfig.WebConfig.DirectoryIndex = true
		beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
	}

	beego.SetLogger("file", `{"filename":"webServer.log","separate":["emergency", "alert", "critical", "error", "warning", "notice", "info", "debug"]}`)
	beego.SetLogFuncCall(true)
	beego.BeeLogger.DelLogger("console")
	beego.Run()
}
